﻿<UserControl x:Class="TriviaViews.Views.ScoreBoardView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
    
            <Label HorizontalAlignment="Center" FontSize="30" Background="BlanchedAlmond" Margin="28,32,23,6" Width="249">Users Score Table</Label>



        <!--VerticalScrollBarVisibility=""-->
        <DataGrid  Grid.Row="1" Name="ScoreTable" ItemsSource="{Binding UsersScore}" AutoGenerateColumns="False" Background="LightGray" RowBackground="LightYellow"
   AlternatingRowBackground="LightBlue" BorderBrush="Gray" BorderThickness="5" IsReadOnly="True" >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding  Path=UserName}" Header="User Name"></DataGridTextColumn>
                <DataGridTextColumn Binding ="{Binding Path=score}" Header="Score"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>




    </Grid>
</UserControl>
